/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: TestServer
 * @Package com.rx.core
 * @Description:
 * @author: 陈锦韬
 * @date: 2021\6\23 0023
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.oa.controller;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseController;
import com.rx.core.base.RxResponse;
import com.rx.core.iface.RxContent;
import com.rx.core.mode.TotalHandlerContainer;
import com.rx.core.util.EmptyChecker;
import com.rx.core.util.RxContentHolder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Administrator
 * @Description:
 * @date: 2021\6\23 0023
 */
@RestController
//@RequestMapping(RxBaseConstant.CONFIG_COMMON_API)
@RequestMapping("common")
@Slf4j
public class TestServer extends RxBaseController {

    /**
     * 处理器日志
     * @return
     */
    @PostMapping(value = "test")
    public Object handlerConfigLog(){
        RxResponse rxResponse = new RxResponse();

        log.info("xxxx:"+ RxContentHolder.getUser());
        log.info("用户名:"+ RxContentHolder.getUser().getUserInfo().getRealName());
        rxResponse.setResultData(RxContentHolder.getUser().getUserInfo());
        return rxResponse;
    }
}
